package pkg;

import java.io.File;

public class FileManager {
	public String[] getFileList() {
		String directory="C:\\EclipseProjectExperimental\\Refleksje\\src\\cfg";
        File dir = new File(File.separator+directory);
        getFileName(dir.list()[0]);
        String[] files = dir.list();
        
        for(int i=0; i< files.length; i++) {
        	files[i] = getFileName(files[i]);
        }
        
        return files;
	}
	
	private String getFileName(String name) {
		String file = name.substring(0, name.indexOf("."));
		return file;
	}

}
